package club.emergency.wechat.persistence.role;

import club.emergency.wechat.model.role.RoleHasManager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jifujun
 * @since 2019-03-19
 */
public interface RoleHasManagerMapper extends BaseMapper<RoleHasManager> {

    /**
     * 根据后台用户id删除记录
     *
     * @param managerId 后台人员id
     */
    @Delete("delete from role_has_manager where manager_id = #{managerId}")
    void removeByManagerId(@Param("managerId") Long managerId);
}
